package com.easystudy.media.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(Include.NON_NULL)
@EqualsAndHashCode(callSuper=false)
public class DeviceInfo {
	/**
	 * 设备编码，必填
	 */
    private String id;
    /**
     * 设备地址，必填
     */
    private String ip;
    /**
     * 视频地址，格式rtsp，必填
     */
    private String rtsp;
    /**
     * 设备登录账号，可选
     */
    private String userName;
    /**
     * 设备登录密码，可选
     */
    private String password;
    /**
     * 设备通道，从1开始
     */
    private Integer channel = 1;
    /**
     * 设备类型：固定为0(ipc)
     */
    private Integer type = 0;
    /**
     * 接入协议：固定为0(rtsp)
     */
    private Integer protocol = 0;
    /**
     * 录像策略
     */
    private StrategyInfo strategy;
}